<!DOCTYPE html>
<html lang="en">

{% load static %}

<head>
    <meta charset="UTF-8">
    <title>重置密码</title>
</head>

<body>
    <h4>修改密码</h4>
    <p>已经通过验证，请设置新密码</p>
    <form id="reset_password_form" action="{% url 'modify_pwd' %}" method="post">
        <ul>
            <li class="{% if modify_form.errors.password1 %}errorput{% endif %}">
                <span class="">请输入新密码 ：</span>
                <input type="password" name="password1" id="pwd">
                <i></i>
            </li>
            <input type="hidden" name="email" value="{{ email }}">
            <input type="hidden" name="code" value="{{ code }}">
            <li class="{% if modify_form.errors.password2 %}errorput{% endif %}">
                <span class="">请确定新密码：</span>
                <input type="password" name="password2" id="repwd">
                <i></i>
            </li>
            <div class="error btns" id="jsPasswdResetTips">
                {% for key,error in modify_form.errors.items %}
                    {{ key }}:{{ error }}
                {% endfor %}
                {{ msg }}
            </div>
            <li class="button">
                <input type="submit" value="提交">
            </li>
        </ul>
        {% csrf_token %}
    </form>
    <div>
        <a href="/">首页</a>
    </div>
</body>

</html>